package com.example.mynewsapp.fragment

import android.app.Activity
import android.database.sqlite.SQLiteDatabase
import com.example.mynewsapp.adapter.NewsAdapter
import com.example.mynewsapp.adapter.VideoAdapter
import com.example.mynewsapp.model.ArticaleModel
import com.example.mynewsapp.model.NewsItem


object Fragment {
    var country: String? = ""
    var news_adapter : NewsAdapter? = null
    var video_adapter : VideoAdapter? = null
    var modelArticle: MutableList<ArticaleModel> = java.util.ArrayList()
    var list : List<NewsItem>? = null

    var db: SQLiteDatabase? = null

    var mActivity: Activity? = null

    //顶部tablayout的字符
    val TAB_TITLES = arrayOf(
        "headline",
        "sports",
        "technology",
        "business",
        "health",
        "entertainment",
    )

    val TAB_TITLES_CN = arrayOf(
        "头条",
        "体育",
        "科技",
        "经济",
        "健康",
        "娱乐",
    )

    val TAB_VIDEO = arrayOf(
            "life",//36
            "cartoon",//10
            "fun",//28
            "food",//4
            "sports",//18
            "music",//20
            "pets",//26
            "technology",//32
            "films",//8
            "games",//30
    )

    val TAB_VIDEO_CN = arrayOf(
            "生活",//36
            "动画",//10
            "搞笑",//28
            "美食",//4
            "体育",//18
            "音乐",//20
            "宠物",//26
            "科技",//32
            "影视",//8
            "游戏",//30
    )

    val TAB_HIS_AND_FAVOR = arrayOf(
            "news",
            "video"
    )
    val TAB_HIS_AND_FAVOR_CN = arrayOf(
            "新闻",
            "视频"
    )

}